const express = require('express');

const router = express.Router();
const uploads =require('../middleware/upload')
const { getPerson,writePerson,updatePerson,uploadAvatar} = require('../controller/personCtr')


router.get('/getPerson',getPerson)
router.post('/writePerson',writePerson)
router.post('/updatePerson',updatePerson)
//上传人物头像
router.post('/uploadAvatar',uploads,uploadAvatar)

module.exports = router;